<template>
  <!-- 顶部的导航栏 -->
  <div class="top-nav">
    <router-link to="">
      <button @click="$router.go(-1)">
        <img src="../assets/返回@2x.png" alt="" />
      </button>
    </router-link>
    <slot></slot>
    <router-link to="">
      <img src="../assets/分享-黑@2x.png" alt="" />
    </router-link>
  </div>
</template>
<style lang="scss" scoped>
.top-nav {
  display: flex;
  justify-content: space-between;
  height: 44px;
  // background-color: #f9f9f9;
  button{
    border: none;
    background-color: #ffffff;}
  img{
    width: 30px;
    height: 30px;
    margin: 7px;
  }
}
// .top-write {
//     // font-family: PingFangSC-Regular;
//     font-size: 17px;
//     color: #333333;
//     letter-spacing: 0;
//     text-align: center;
//     line-height: 44px;
//   }
</style>
